package com.ruoyi.crm.mapper;

import com.ruoyi.crm.domain.dos.AscriptionDos;
import com.ruoyi.crm.domain.dos.ChannelStatisticsDos;
import com.ruoyi.crm.domain.dos.ContractDos;
import com.ruoyi.crm.domain.dos.DeptStatisticsDos;
import com.ruoyi.crm.domain.dto.ChannelDTO;
import com.ruoyi.crm.domain.dto.ClueDTOQuery;
import com.ruoyi.crm.domain.dto.ReportClueDTO;
import com.ruoyi.crm.domain.dto.TransferDTO;
import com.ruoyi.crm.domain.vo.ClueStatisticVO;
import com.ruoyi.crm.domain.vo.HopperVO;
import com.ruoyi.crm.domain.vo.IndexParamsVO;
import com.ruoyi.crm.domain.vo.IndexVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author mr.huang [jie88888822@163.com]
 * @devTime 2022-06-12
 */
public interface ReportDataMapper {

	IndexVO getBaseData(IndexParamsVO indexVO);

	List<ClueStatisticVO> salesStatistic(IndexParamsVO indexParamsVO);

	List<ClueStatisticVO> businessChangeStatistics(IndexParamsVO indexParamsVO);

	Integer selectClueCount(@Param("beginCreateTime") String beginCreateTime,
							@Param("endCreateTime") String endCreateTime);

	Integer selectEffectiveClue(@Param("beginCreateTime") String beginCreateTime,
								@Param("endCreateTime") String endCreateTime);

	Integer selectBusinessCount(@Param("beginCreateTime") String beginCreateTime,
								@Param("endCreateTime") String endCreateTime);

	Integer selectContractCount(@Param("beginCreateTime") String beginCreateTime,
								@Param("endCreateTime") String endCreateTime);

	List<ContractDos> selectClueTimeCount(@Param("beginCreateTime") String beginCreateTime,
										  @Param("endCreateTime") String endCreateTime);

	List<ReportClueDTO> cluesStatisticsList(ClueDTOQuery clueDTOQuery);

	List<TransferDTO> getTransferDTOS();

	List<ChannelStatisticsDos> channelStatisticsList(@Param("beginCreateTime") String beginCreateTime,
													 @Param("endCreateTime") String endCreateTime);

	List<DeptStatisticsDos> deptStatisticsList(@Param("beginCreateTime") String beginCreateTime,
											   @Param("endCreateTime") String endCreateTime);

	List<AscriptionDos> ownerShipStatisticsList(@Param("beginCreateTime") String beginCreateTime,
												@Param("endCreateTime") String endCreateTime);

	List<ChannelDTO> activityStatisticsList(@Param("code") String code,
											@Param("name") String name);
}
